package com.weishuang.monitor.employee.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author weishuang
 * @since 2021-04-19
 */
public class ServerProcessInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 进程ID
     */
    private Integer processId;

    /**
     * 父级进程ID
     */
//    private Integer parentProcessId;

    /**
     * 进程名称
     */
    private String name;

    /**
     * 进程路径
     */
    private String path;

    /**
     * 命令
     */
    private String commandLine;

    /**
     * 工作目录
     */
    private String currentWorkingDirectory;

    /**
     * 用户
     */
    private String user;

    /**
     * 用户id
     */
    private String userId;

//    /**
//     * 组
//     */
//    private String group;
//
//    /**
//     * 组Id
//     */
//    private String groupId;

    /**
     * 使用线程数量
     */
    private Integer threadCount;

    /**
     * 进程执行优先级
     */
//    private Integer priority;

    /**
     * 虚拟内存大小
     */
//    private Long virtualSize;

    /**
     * 占用内存大小（不包括交换）
     */
    private Long residentSetSize;

    /**
     * 内存总量、冗余字段
     */
    private Long ramTotal;

    /**
     * 进程执行的毫秒数
     */
    private Long kernelTime;

    /**
     * 使用的用户时间
     */
    private Long userTime;

    /**
     * 启动运行的时间 毫秒
     */
    private Long upTime;

    /**
     * 开始时间，1970
     */
    private Long startTime;

    /**
     * 读取字节数
     */
    private Long bytesRead;

    /**
     * 写字节数
     */
    private Long bytesWritten;

    /**
     * 打开文件或网络数
     */
    private Long openFiles;

    /**
     * 累计cpu占用率
     */
    private BigDecimal processCpuLoadCumulative;

    private String updatedTime;

    public Integer getProcessId() {
        return processId;
    }

    public void setProcessId(Integer processId) {
        this.processId = processId;
    }

//    public Integer getParentProcessId() {
//        return parentProcessId;
//    }
//
//    public void setParentProcessId(Integer parentProcessId) {
//        this.parentProcessId = parentProcessId;
//    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getCommandLine() {
        return commandLine;
    }

    public void setCommandLine(String commandLine) {
        this.commandLine = commandLine;
    }

    public String getCurrentWorkingDirectory() {
        return currentWorkingDirectory;
    }

    public void setCurrentWorkingDirectory(String currentWorkingDirectory) {
        this.currentWorkingDirectory = currentWorkingDirectory;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

//    public String getGroup() {
//        return group;
//    }
//
//    public void setGroup(String group) {
//        this.group = group;
//    }
//
//    public String getGroupId() {
//        return groupId;
//    }
//
//    public void setGroupId(String groupId) {
//        this.groupId = groupId;
//    }

    public Integer getThreadCount() {
        return threadCount;
    }

    public void setThreadCount(Integer threadCount) {
        this.threadCount = threadCount;
    }

//    public Integer getPriority() {
//        return priority;
//    }
//
//    public void setPriority(Integer priority) {
//        this.priority = priority;
//    }
//
//    public Long getVirtualSize() {
//        return virtualSize;
//    }
//
//    public void setVirtualSize(Long virtualSize) {
//        this.virtualSize = virtualSize;
//    }

    public Long getResidentSetSize() {
        return residentSetSize;
    }

    public void setResidentSetSize(Long residentSetSize) {
        this.residentSetSize = residentSetSize;
    }

    public Long getRamTotal() {
        return ramTotal;
    }

    public void setRamTotal(Long ramTotal) {
        this.ramTotal = ramTotal;
    }

    public Long getKernelTime() {
        return kernelTime;
    }

    public void setKernelTime(Long kernelTime) {
        this.kernelTime = kernelTime;
    }

    public Long getUserTime() {
        return userTime;
    }

    public void setUserTime(Long userTime) {
        this.userTime = userTime;
    }

    public Long getUpTime() {
        return upTime;
    }

    public void setUpTime(Long upTime) {
        this.upTime = upTime;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getBytesRead() {
        return bytesRead;
    }

    public void setBytesRead(Long bytesRead) {
        this.bytesRead = bytesRead;
    }

    public Long getBytesWritten() {
        return bytesWritten;
    }

    public void setBytesWritten(Long bytesWritten) {
        this.bytesWritten = bytesWritten;
    }

    public Long getOpenFiles() {
        return openFiles;
    }

    public void setOpenFiles(Long openFiles) {
        this.openFiles = openFiles;
    }

    public BigDecimal getProcessCpuLoadCumulative() {
        return processCpuLoadCumulative;
    }

    public void setProcessCpuLoadCumulative(BigDecimal processCpuLoadCumulative) {
        this.processCpuLoadCumulative = processCpuLoadCumulative;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }
}
